

<div id="msg"></div>
<form name="myform" id="myform" action="<if condition="$action_name=='add'">{:U($module_name.'/insert')}<else />{:U($module_name.'/update')}</if>&iscreatehtml=1" method="post">
<div id="filelist" class="hide"></div>
<div class="error"><ul></ul></div>
<table cellpadding=0 cellspacing=0 class="table_form" width="100%">
		<volist name="fields" id="r">
		<if condition="!empty($r['status'])">
            {if $r['field']=="catid"} 
             <input name="catid" type="hidden" value="32" />
            {elseif $r['field']=="plateid"}
               {if $_GET['plateid']==8}
                   <tr>
                        <td width="10%">板块</td>
                        <td width="90%" id="box_plateid">
                        <input name="plateid" type="hidden" value="8" />
                           专题策划
                        </td>
                    </tr>
                {else}
                   <tr>
                        <td width="10%">板块</td>
                        <td width="90%" id="box_plateid">
                        <select id="plateid" name="plateid" class=" ">
                        <option value="">请选择</option>
                          
                          <YP:list name="Zforum_plate"  id="r" >
                            <?php $seled = $vo['plateid'] == $r['id'] ? 'selected="selected"' : '';?>
                            <option value="{$r['id']}" {$seled}> {$r['name']}</option>
                           </YP:list>
                        </select>                    
                        </td>
                    </tr>
               {/if}
            {else}
                <tr>
                    <td width="10%" ><if condition="$r['required']"><font color="red">*</font></if>{$r.name}</td>
                    <td width="90%" id="box_{$r['field']}">
                    {$r|getform=$form,###}
                    </td>
                </tr>
            {/if}
            
		</if>
		
		</volist>
</table>
<div id="bootline"></div>
<div id="btnbox" class="btn">
<if condition="$vo['id']!=''"><input TYPE="hidden" name="id" value="{$vo.id}"></if>
<input type="hidden"  name="lang" value="{$langid}" />
<input type="hidden" name="forward" value="{$_SERVER['HTTP_REFERER']}" />
<INPUT TYPE="submit"  value="{:L('dosubmit')}" class="button" >
<input TYPE="reset"  value="{:L('cancel')}" class="button">
</div>
</form>
</div>
                                                                                                                                                                                                                                                                                                                                                                                                                                                